import request from '@/utils/request'

export function getOptionList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getList',
    method: 'post',
    data: query
  })
}   
export function getOptionOptionalList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getOptionalList',
    method: 'post',
    data: query
  })
} 

export function getOptionStrategyList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getStrategyList',
    method: 'post',
    data: query
  })
}   

export function getOptionUsableList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getList',
    method: 'post',
    data: query
  })
}   
export function getOptionDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getDetail',
    method: 'post',
    data: query
  })
}   
export function getOptionTradeList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/option/getTradeList',
    method: 'post',
    data: query
  })
}   

export function changeOptionAllowed(query) {
  return request({
    url: '/knowledge/admin/option/allowed-change',
    method: 'post',
    data: query
  })
}